package net.gzw1993.runmate.constant;

/**
 * 所有url
 * Created by guoziwei on 2015/8/17.
 */
public class UrlInfo {
    /**
     * 在线活动页面的url
     *
     * @param page     页数
     * @param pageSize 每一页的条数
     * @return
     */
    public static String getOnlineActive(int page, int pageSize) {
        return "http://runmate.runtogether.cn/api/v2/onlineactivitys?page=" +
                page +
                "&pageSize=" +
                pageSize;
    }

    /**
     * 默认第一页的在线活动
     *
     * @return
     */
    public static String getOnlineActive() {
        return "http://runmate.runtogether.cn/api/v2/onlineactivitys?page=0&pageSize=10";
    }

    /**
     * 获取附近页面的活动的url
     *
     * @param page
     * @param pageSize
     * @param lat
     * @param lng
     * @return
     */
    public static String getNearActive(int page, int pageSize, double lat, double lng) {
        return "http://runmate.runtogether.cn/api/v2/activities/nears?page=" +
                page +
                "&pageSize=" +
                pageSize +
                "&seach=&lat=" +
                lat +
                "&lng=" +
                lng;
    }

    /**
     * 获取用户信息的url
     *
     * @return
     */
    public static String getUserInfo() {
        return "http://runmate.runtogether.cn/api/v2/users/userinfo/" +
                "8fb7c740416011e598e700163e0221a7";
    }

    /**
     * 每周运动信息
     * @return
     */
    public static String getWeekRunCount() {
        return "http://runmate.runtogether.cn/api/v2/users/" +
                "8fb7c740416011e598e700163e0221a7/runcounts?scope=WEEK";
    }

    /**
     * 每月运动信息
     * @return
     */
    public static String getMonthRunCount() {
        return "http://runmate.runtogether.cn/api/v2/users/" +
                "8fb7c740416011e598e700163e0221a7/runcounts?scope=MONTH";
    }

    /**
     * 每年的运动信息
     * @return
     */
    public static String getYearRunCount() {
        return "http://runmate.runtogether.cn/api/v2/users/" +
                "8fb7c740416011e598e700163e0221a7/runcounts?scope=YEAR";
    }

    /**
     * 我的在线活动
     * @param page
     * @param pageSize
     * @return
     */
    public static String getMyOnlineActive(int page, int pageSize) {
        return "http://runmate.runtogether.cn/api/v2/users/" +
                "8fb7c740416011e598e700163e0221a7/onlineactivitys?page=" +
                page +
                "&pageSize=" +
                pageSize;
    }

    /**
     * 我的附近活动
     * @param page
     * @param pageSize
     * @param lat
     * @param lng
     * @return
     */
    public static String getMyNearActive(int page, int pageSize, int lat, int lng) {
        return "http://runmate.runtogether.cn/api/v3/users/" +
                "8fb7c740416011e598e700163e0221a7/activities?page=" +
                page +
                "&pageSize=" +
                pageSize +
                "&seach=&lat=" +
                lat +
                "&lng=" +
                lng +
                "&seach=";
    }

    /**
     * 我的运动任务
     * @return
     */
    public static String getMyRecorder(int page) {
        return "http://runmate.runtogether.cn/api/v2/users/8fb7c740416011e598e700163e0221a7/runs?page=" +
                page +
                "&pageSize=10";
    }

}
